package com.book.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author icatw
 * @date 2022/4/8
 * @email 762188827@qq.com
 * @apiNote 收藏中间表 根据用户id和书籍id查询
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "bs_collection")
public class Favorites extends Model<Favorites> {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    private Integer bookId;
    private Integer status;
}
